import { DefaultCrudRepository, juggler } from '@loopback/repository';
import { Topic } from '../models';
import { MysqlLocalDataSource } from '../datasources';
import { inject } from '@loopback/core';

export class TopicRepository extends DefaultCrudRepository<
  Topic,
  typeof Topic.prototype.id
  > {
  constructor(
    @inject('datasources.mysqlLocal') dataSource: MysqlLocalDataSource,
  ) {
    super(Topic, dataSource);
  }
}
